import java.awt.*;
import com.golden.gamedev.Game;
import com.golden.gamedev.GameLoader;


public class BubblefishBob extends Game
{
	private static final long serialVersionUID = 1L;
	private ProgBob progbob = new ProgBob();


	public BubblefishBob ()
	{
	    distribute = true;
	}
	
	@Override
    public void initResources ()
    {
	    progbob.init(this);
    }


    @Override
    public void render (Graphics2D context)
    {
        progbob.draw(context);
    }


    @Override
    public void update (long elapsedTime)
    {
        progbob.handleInput();
        progbob.update(elapsedTime / 1000.0);
    }


    public static void main (String[] args)
    {
        GameLoader loader = new GameLoader();
        loader.setup(new BubblefishBob(), new Dimension(480, 360), false);        
        loader.start();
    }
}
